<?php

class PhotosController extends Controllers_BaseContent {

    public function init() {
    	parent::init();
    	
    	$this->view->tag = "Toutes les photos";
    	$this->view->tags = array();
    	$this->view->images = array();
    	$this->view->idGalerie = 'galeriePhotos';
    }

    public function indexAction() {
    	$tagName = $this->getFrontController()->getRequest()->getParam(Plugins_PhotosPlugin::PARAMETRE_TAG);
    	$photosPlugins = $this->getFrontController()->getPlugin('Plugins_InitialisationPlugin')->getAvailablePlugin('photos');
    	
        $this->view->tag = $photosPlugins->getTag($tagName);
    	$this->view->tags = $photosPlugins->getTags();
        $this->view->images = $photosPlugins->getImages($tagName);
    }
}
